<template>
	<div>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">会员昵称：{{ dataForm.memberNick }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">会员类型：{{ dataForm.memberTypeName }}</el-card>
			</el-col>
		</el-row>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">折扣：{{ dataForm.discount }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">余额：<span style="color: red;"> ￥{{ dataForm.balace }}元</span></el-card>
			</el-col>
		</el-row>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">积分：{{ dataForm.integral }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">总消费：<span style="color: red;"> ￥{{ dataForm.totalConsume }}元</span></el-card>
			</el-col>
		</el-row >
		<el-divider></el-divider>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">会员卡号：{{ dataForm.memberCardNo }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">会员身份证号：{{ dataForm.idCard }}</el-card>
			</el-col>
		</el-row>
		<el-divider></el-divider>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">会员姓名：{{ dataForm.memberName }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">性别：{{ dataForm.sex === 1 ? '男' : '女' }}</el-card>
			</el-col>
		</el-row>
		<el-divider></el-divider>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">家庭地址：{{ dataForm.address }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">电话号码：{{ dataForm.tel }}</el-card>
			</el-col>
		</el-row>
		<el-divider></el-divider>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">长期有效：{{ dataForm.longTermStatus === 1 ? '是' : '否' }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card shadow="never">到期时间：{{ dataForm.termOfValidity }}</el-card>
			</el-col>
		</el-row>
		<el-divider></el-divider>
		<el-row :gutter="30">
			<el-col :span="12">
				<el-card shadow="never">生日：{{ dataForm.birthday }}</el-card>
			</el-col>
			<el-col :span="12">
				<el-card v-show="dataForm.status == 1" shadow="never">状态：正常</el-card>
				<el-card v-show="dataForm.status == 2" shadow="never">状态：冻结</el-card>
				<el-card v-show="dataForm.status == 3" shadow="never">状态：退卡</el-card>
			</el-col>
		</el-row>
		<el-divider></el-divider>
		<el-row>
			<el-col :span="12">
				<el-card shadow="never">备注：{{ dataForm.remark }}</el-card>
			</el-col>
		</el-row>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				dataForm: {
					memberNick:''
				},
			}
		},
		
		methods: {
			//会员详情
			init(id) {
				this.$http({
					url: this.$http.adornUrl(`/store/tstoremember/info/${id}`),
					method: 'get',
					params: this.$http.adornParams()
				}).then(({ data }) => {
					if (data && data.code === 0) {
						this.dataForm.memberNick = data.tStoreMember.memberNick;
						this.dataForm.memberCardNo = data.tStoreMember.memberCardNo;
						this.dataForm.memberTypeId = data.tStoreMember.memberTypeId;
						this.dataForm.memberTypeName = data.tStoreMember.memberTypeName;
						this.dataForm.registerTime = data.tStoreMember.registerTime;
						this.dataForm.revokeTime = data.tStoreMember.revokeTime;
						this.dataForm.idCard = data.tStoreMember.idCard;
						this.dataForm.memberName = data.tStoreMember.memberName;
						this.dataForm.sex = data.tStoreMember.sex.toString();
						this.dataForm.address = data.tStoreMember.address;
						this.dataForm.tel = data.tStoreMember.tel;
						this.dataForm.birthday = data.tStoreMember.birthday;
						this.dataForm.termOfValidity = data.tStoreMember.termOfValidity;
						this.dataForm.longTermStatus = data.tStoreMember.longTermStatus.toString();
						this.dataForm.loginPwd = data.tStoreMember.loginPwd;
						this.dataForm.payPwd = data.tStoreMember.payPwd;
						this.dataForm.applyMode = data.tStoreMember.applyMode;
						this.dataForm.status = data.tStoreMember.status.toString();
						this.dataForm.sellerId = data.tStoreMember.sellerId;
						this.dataForm.memberImg = data.tStoreMember.memberImg;
						this.dataForm.createUserId = data.tStoreMember.createUserId;
						this.dataForm.createTime = data.tStoreMember.createTime;
						this.dataForm.discount = data.tStoreMember.discount;
						this.dataForm.integral = data.tStoreMember.integral;
						this.dataForm.totalConsume = data.tStoreMember.totalConsume;
						this.dataForm.balace = data.tStoreMember.balace;
						this.dataForm.remark = data.tStoreMember.remark;
					}
				});
			},
			}
	}
</script>

<style>
</style>
